package com.yan.design.strategy.impl;

import com.yan.design.strategy.UserService;
import org.springframework.stereotype.Service;

/**
 * 策略模式
 * @author shengren.yan
 * @create 2022-11-19
 */
@Service
public class UserServiceImplB implements UserService {

    @Override
    public String getType() {
        return "b";
    }
    @Override
    public void saveUser() {
        System.out.println("算法2");
    }
}
